package com.ys.entity.business;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TP_BoutiqueGoods", catalog="Id")
public class TpBoutiqueGoods extends BaseEntity<TpBoutiqueGoods> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Code", nameJava="code", typeDataBase="varchar")
	private String code;
	@YsField(nameDataBase="Pcode", nameJava="pcode", typeDataBase="varchar")
	private String pcode;
	@YsField(nameDataBase="Attr", nameJava="attr", typeDataBase="varchar")
	private String attr;
	@YsField(nameDataBase="Warehouse", nameJava="warehouse", typeDataBase="varchar")
	private String warehouse;
	@YsField(nameDataBase="Size", nameJava="size", typeDataBase="varchar")
	private String size;
	@YsField(nameDataBase="Weight", nameJava="weight", typeDataBase="varchar")
	private String weight;
	@YsField(nameDataBase="RetailPrice", nameJava="retailPrice", typeDataBase="decimal")
	private BigDecimal retailPrice;
	@YsField(nameDataBase="OriginPrice", nameJava="originPrice", typeDataBase="decimal")
	private BigDecimal originPrice;
	@YsField(nameDataBase="NumPerBox", nameJava="numPerBox", typeDataBase="int")
	private Integer numPerBox;
	@YsField(nameDataBase="NumBuyMin", nameJava="numBuyMin", typeDataBase="int")
	private Integer numBuyMin;
	@YsField(nameDataBase="NumBuyMinSecond", nameJava="numBuyMinSecond", typeDataBase="int")
	private Integer numBuyMinSecond;
	@YsField(nameDataBase="UnitName", nameJava="unitName", typeDataBase="varchar")
	private String unitName;
	@YsField(nameDataBase="Period", nameJava="period", typeDataBase="int")
	private Integer period;
	@YsField(nameDataBase="TimeArrivePredict", nameJava="timeArrivePredict", typeDataBase="varchar")
	private String timeArrivePredict;
	@YsField(nameDataBase="NumAll", nameJava="numAll", typeDataBase="int")
	private Integer numAll;
	@YsField(nameDataBase="NumPreBuy", nameJava="numPreBuy", typeDataBase="int")
	private Integer numPreBuy;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TpBoutiqueGoods setId(Long id) {
		this.id = id;
		return this;
	}
	public String getCode() {
		return code;
	}
	public TpBoutiqueGoods setCode(String code) {
		this.code = code;
		return this;
	}
	public String getPcode() {
		return pcode;
	}
	public TpBoutiqueGoods setPcode(String pcode) {
		this.pcode = pcode;
		return this;
	}
	public String getAttr() {
		return attr;
	}
	public TpBoutiqueGoods setAttr(String attr) {
		this.attr = attr;
		return this;
	}
	public String getWarehouse() {
		return warehouse;
	}
	public TpBoutiqueGoods setWarehouse(String warehouse) {
		this.warehouse = warehouse;
		return this;
	}
	public String getSize() {
		return size;
	}
	public TpBoutiqueGoods setSize(String size) {
		this.size = size;
		return this;
	}
	public String getWeight() {
		return weight;
	}
	public TpBoutiqueGoods setWeight(String weight) {
		this.weight = weight;
		return this;
	}
	public BigDecimal getRetailPrice() {
		return retailPrice;
	}
	public TpBoutiqueGoods setRetailPrice(BigDecimal retailPrice) {
		this.retailPrice = retailPrice;
		return this;
	}
	public BigDecimal getOriginPrice() {
		return originPrice;
	}
	public TpBoutiqueGoods setOriginPrice(BigDecimal originPrice) {
		this.originPrice = originPrice;
		return this;
	}
	public Integer getNumPerBox() {
		return numPerBox;
	}
	public TpBoutiqueGoods setNumPerBox(Integer numPerBox) {
		this.numPerBox = numPerBox;
		return this;
	}
	public Integer getNumBuyMin() {
		return numBuyMin;
	}
	public TpBoutiqueGoods setNumBuyMin(Integer numBuyMin) {
		this.numBuyMin = numBuyMin;
		return this;
	}
	public Integer getNumBuyMinSecond() {
		return numBuyMinSecond;
	}
	public TpBoutiqueGoods setNumBuyMinSecond(Integer numBuyMinSecond) {
		this.numBuyMinSecond = numBuyMinSecond;
		return this;
	}
	public String getUnitName() {
		return unitName;
	}
	public TpBoutiqueGoods setUnitName(String unitName) {
		this.unitName = unitName;
		return this;
	}
	public Integer getPeriod() {
		return period;
	}
	public TpBoutiqueGoods setPeriod(Integer period) {
		this.period = period;
		return this;
	}
	public String getTimeArrivePredict() {
		return timeArrivePredict;
	}
	public TpBoutiqueGoods setTimeArrivePredict(String timeArrivePredict) {
		this.timeArrivePredict = timeArrivePredict;
		return this;
	}
	public Integer getNumAll() {
		return numAll;
	}
	public TpBoutiqueGoods setNumAll(Integer numAll) {
		this.numAll = numAll;
		return this;
	}
	public Integer getNumPreBuy() {
		return numPreBuy;
	}
	public TpBoutiqueGoods setNumPreBuy(Integer numPreBuy) {
		this.numPreBuy = numPreBuy;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TpBoutiqueGoods setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TpBoutiqueGoods setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TpBoutiqueGoods setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TpBoutiqueGoods tpBoutiqueGoods(
		String code,
		String pcode,
		String attr,
		String warehouse,
		String size,
		String weight,
		BigDecimal retailPrice,
		BigDecimal originPrice,
		Integer numPerBox,
		Integer numBuyMin,
		Integer numBuyMinSecond,
		String unitName,
		Integer period,
		String timeArrivePredict,
		Integer numAll,
		Integer numPreBuy,
		Integer status
			) {
		TpBoutiqueGoods entity = new TpBoutiqueGoods();
		entity.setCode(code);
		entity.setPcode(pcode);
		entity.setAttr(attr);
		entity.setWarehouse(warehouse);
		entity.setSize(size);
		entity.setWeight(weight);
		entity.setRetailPrice(retailPrice);
		entity.setOriginPrice(originPrice);
		entity.setNumPerBox(numPerBox);
		entity.setNumBuyMin(numBuyMin);
		entity.setNumBuyMinSecond(numBuyMinSecond);
		entity.setUnitName(unitName);
		entity.setPeriod(period);
		entity.setTimeArrivePredict(timeArrivePredict);
		entity.setNumAll(numAll);
		entity.setNumPreBuy(numPreBuy);
		entity.setStatus(status);
		return entity;
	}
}